//babel-plugin-transform-remove-console"
const productionPlugins = [];

//判断是开发阶段还是发布阶段
if(process.env.NODE_ENV === 'production'){
    //production发布阶段所需要的插件
    productionPlugins.push("transform-remove-console")
}


module.exports = {
  "presets": [
    "@vue/cli-plugin-babel/preset"
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],
      ...productionPlugins
  ]
}